﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using web.core.ViewModels;
using web.core.Models;
using web.component; 

namespace web.core.Controllers
{
    public class admDefaultPageController : baseController
    {
        //
        // GET: /admDefaultPage/

        public ActionResult default_page()
        {
            bool permission = false;
            InitPage(ref permission);
            ViewBag.permission = permission;
            return View();
        }

        [ChildActionOnly]
        public ActionResult pdefault() {
            var page = Request.QueryString["p"];
            if (page == "cf")
            {
                return PartialView("../Shared/default_page/df_config");
            }
            else if (page == "ct")
            {
                return PartialView("../Shared/default_page/df_content");
            }
            else
            {
                return PartialView("../Shared/default_page/df_page");
            }
        }
    }
}
